package com.lwj.springbootvue.request;

import lombok.Data;

import java.io.Serializable;

@Data
public class PageParam implements Serializable {

    // 当前页
    private Long pageNum = 1L;
    // 每页的数据量
    private Long pageSize = 10L;
    // 总页数数
    private Long total;


    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public Long getPageNum() {
        return pageNum;
    }

    public void setPageNum(Long pageNum) {
        this.pageNum = pageNum;
    }

    public Long getPageSize() {
        return pageSize;
    }

    public void setPageSize(Long pageSize) {
        this.pageSize = pageSize;
    }

    @Override
    public String toString() {
        return "PageParam{" +
                "pageNum=" + pageNum +
                ", pageSize=" + pageSize +
                '}';
    }
}

